<%--
  Created by IntelliJ IDEA.
  User: maoxiangsun
  Date: 2019-07-11
  Time: 20:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    String id = request.getParameter("id");
    Bookdao bookdao = new Bookdao();
    Book book = bookdao.getBook(id);
%>
<head>
    <title><%=book.getName()%>-网上书店My-eBookStore</title>
    <link rel="shortcut icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
    <link rel="icon" href="http://www.sdust.edu.cn/images/favicon.ico" mce_href="images/favicon.ico" type="image/x-icon">
    <style>
        a:hover{
            background-color:#FF7F50;
        }
    </style>
    <style>
        .button {
            background-color: #FF4500; /* Green */
            border: none;
            color: white;
            padding: 16px 16px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 2px 2px;
            -webkit-transition-duration: 0.4s; /* Safari */
            transition-duration: 0.4s;
            cursor: pointer;
        }


    </style>
</head>

<%@page import="bean.*"%> <%@page import="dao.*"%>
<jsp:include page="head.jsp"></jsp:include>
<body>
<table></table>
    <table border="0" style="font-size: 20px;  background: white">
        <tr>
            <td align="center" style="font-size: 25px; color:#4169E1" colspan="3"><%=book.getName()%></td>
            <td width="50%" rowspan="2" style="color:#00008B">ISBN：<%=book.getIsbn()%>
                <br>作者：<%=book.getAuthor()%><br>
                类型：<%=book.getKind()%><br>
                库存：<%=book.getNum()%>
            </td>
        </tr>
        <tr >
            <td height="300px" colspan="2" align="center" style="background: white"><img style="width: 300px;height: 300px;"  src=<%=book.getLinktoimg()%>></td>
        </tr>
        <tr >
            <th style="color: red">￥<%=book.getPrice()%></th>
        </tr>
        <tr >
            <th ><a class="button" href="" >加入到购物车<img  width="20px" height="18px" src="sources/购物车1.png"></a> </th>
        </tr>
        <tr>
            <td colspan="3"><table><tr >图书介绍：</tr><br><tr><%=book.getHead_title()%> </tr></table></td>
        </tr>
    </table>


</body>
<jsp:include page="tail.jsp"></jsp:include>
</html>
